<?php
    $phong = new phongbs();
    $danhsach = $phong->LayDanhSach();
?>
<h3>Danh Sách Phòng</h3>
<table class="danhsach">
    <tr>
        <th width="10">Mã Phòng</th>
        <th width="20%">Loại Phòng</th>
        <th width="20%">Giá Phòng</th>
        <th width="10%">Loại Giường</th>
        <th width="20%">Tình Trạng</th>
        <th width="20%" colspan="2">Thao Tác</th>
    </tr>
    <?php
        for($i=0; $i<($danhsach == false ? 0 : count($danhsach)); $i++){
            echo "<tr>";
                echo "<td>".$danhsach[$i]['MaPhong']."</td>";
                echo "<td>".$danhsach[$i]['LoaiPhong']."</td>";
                echo "<td>".$danhsach[$i]['GiaPhong']."</td>";
                echo "<td>".$danhsach[$i]['LoaiGiuong']."</td>";
                echo "<td>".$danhsach[$i]['TinhTrang']."</td>";
                echo "<td><a href='#sua'>".Sửa."</a></td>";
                echo "<td><a href='#xoa'>".Xóa."</a></td>";
            echo "</tr>";
        }
    ?>
</table>

<a href="index.php?do=phong_them">Thêm Phòng</a>

